﻿/****************
* Authored by Zhuo "Wizcas" Chen
* 2018 © Wubi.fun all rights reserved
*****************/

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Pause : MonoBehaviour 
{
    public void Resume() { Game.instance.isPaused = false; }
    public void BackToMain()    {        Game.instance.ToMainMenu();    }
    public void OnPauseChanged(bool isPaused)
    {
        gameObject.SetActive(isPaused);
    }
}
